import {createRouter, createWebHistory, createWebHashHistory} from 'vue-router'

// vue-router 定义一个简单路由
// 路由配置
const routes = [
  { path: '/', component: () => import('@/b/views/bpage1.vue') },
  { path: '/page2', component: () => import('@/b/views/bpage2.vue') },
  { path: '/page3', component: () => import('@/b/views/bpage3.vue') },
];   
// 创建路由实例
const router = createRouter({
  history: createWebHashHistory(),
  routes,
})
export default router